import { connect } from 'react-redux'

import { actions } from '../modules/forumHome'
// import { fetchDestinations, searchDestinations } from 'reducers/destination'
// import { offerChangeLike } from 'reducers/offerLike'
import { setTitle } from 'reducers/common'
import ForumHome from '../components/ForumHome'
import { loginStatus } from 'reducers/user'

const mapActionCreators = {
  ...actions,
  loginStatus,
  setTitle
}

const mapStateToProps = (state) => ({
  forumHome: state.forumHome,
  user: state.user,
  color: ['#606b9e', '#e8596b', '#857dea', '#56c4e1', '#42c67d', '#f2c400', '#ff955b', '#a08563', '#abbb79', '#FF1493', '#20B2AA', '#ADD8E6']
})

export default connect(mapStateToProps, mapActionCreators)(ForumHome)
